    var userInfo = localStorage.getItem("userInfo");
    var userInfoObj = JSON.parse(userInfo);
    //获取用户电话号
    $("#user_phone").html(userInfoObj.data.Phone)
    //获取优惠券数量；		
    $.ajax({
        type: "get",
        url: currentUrl + "/interfaceDOC/firstProject/User.ashx?action=Get_YouHuiQuan",
        dataType: "json",
        data: {
            "UserId": userInfoObj.data.UserId
        },
        success: function (data) {
            var couponLen = data.data.length;
            $("#user_coupon").html(couponLen);
        }
    });
    //获取余额；		  
    $.ajax({
        type: "get",
        url: currentUrl + "/interfaceDOC/firstProject/User.ashx?action=Get_UserMoney",
        dataType: "json",
        data: {
            "UserId": userInfoObj.data.UserId
        },
        success: function (data) {
            //console.log(data);
            if (data.msgcode == "1") {
                $("#user_money").html(data.data.Money + "元");
            } else {
                return false
            }
        },
        error: function () {
            return false;
        }
    });
    //退出登录
    $('#quit').click(function () {
        localStorage.removeItem("tel");
        localStorage.clear();
        location.reload();
        window.location.href = currentUrl + "/WxSdjs/index.html"; //上传服务器上面用
    })